/* 
 * Since 2008 - 2012
 */
package com.hh.bss.project.vo.query;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;

import java.util.*;

import com.hh.bss.base.*;
import com.hh.bss.util.*;




public class SearchProjectQuery extends BaseQuery implements Serializable {
    private static final long serialVersionUID = 3148176768559230877L;
    

	/** id */
	private java.lang.Integer id;
	/** 项目名 */
	private java.lang.String name;
	/** 拥有人 */
	private java.lang.String account;
	/** 参与人帐号 */
	private java.lang.String partner;
	/** 行业 */
	private java.lang.String industrys;
	/** 职能 */
	private java.lang.String functions;
	/** 职级 */
	private java.lang.String levels;
	/** creator */
	private java.lang.String creator;
	/** createDt */
	private java.util.Date createDtBegin;
	private java.util.Date createDtEnd;
	/** modifier */
	private java.lang.String modifier;
	/** modifiedDt */
	private java.util.Date modifiedDtBegin;
	private java.util.Date modifiedDtEnd;
	/**城市  */
	private  String cities;
	/**启动开始日期  */
	private Date startDtBegin;
	/**启动结束日期  */
	private Date startDtEnd;
	
	/**创建日期*/
	private Date createDt;
	/**一级行业*/
	private String industrysParent; // industrysParent
	/**一级职能 */
	private String functionsParent;
	
	/**标记 是否查询 职位拥有人 or 参与人*/
	private boolean  both = false; //默认不开启
	
	public boolean isBoth() {
		return both;
	}

	public void setBoth(boolean both) {
		this.both = both;
	}

	public String getIndustrysParent() {
		return industrysParent;
	}

	public void setIndustrysParent(String industrysParent) {
		this.industrysParent = industrysParent;
	}

	public String getFunctionsParent() {
		return functionsParent;
	}

	public void setFunctionsParent(String functionsParent) {
		this.functionsParent = functionsParent;
	}

	public Date getCreateDt() {
		return createDt;
	}

	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}

	public Date getStartDtBegin() {
		return startDtBegin;
	}

	public void setStartDtBegin(Date startDtBegin) {
		this.startDtBegin = startDtBegin;
	}

	public Date getStartDtEnd() {
		return startDtEnd;
	}

	public void setStartDtEnd(Date startDtEnd) {
		this.startDtEnd = startDtEnd;
	}

	public String getCities() {
		return cities;
	}

	public void setCities(String cities) {
		this.cities = cities;
	}

	public java.lang.Integer getId() {
		return this.id;
	}
	
	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.String getName() {
		return this.name;
	}
	
	public void setName(java.lang.String value) {
		this.name = value;
	}
	
	public java.lang.String getAccount() {
		return this.account;
	}
	
	public void setAccount(java.lang.String value) {
		this.account = value;
	}
	
	public java.lang.String getPartner() {
		return this.partner;
	}
	
	public void setPartner(java.lang.String value) {
		this.partner = value;
	}
	
	public java.lang.String getIndustrys() {
		return this.industrys;
	}
	
	public void setIndustrys(java.lang.String value) {
		this.industrys = value;
	}
	
	public java.lang.String getFunctions() {
		return this.functions;
	}
	
	public void setFunctions(java.lang.String value) {
		this.functions = value;
	}
	
	public java.lang.String getLevels() {
		return this.levels;
	}
	
	public void setLevels(java.lang.String value) {
		this.levels = value;
	}
	
	public java.lang.String getCreator() {
		return this.creator;
	}
	
	public void setCreator(java.lang.String value) {
		this.creator = value;
	}
	
	public java.util.Date getCreateDtBegin() {
		return this.createDtBegin;
	}
	
	public void setCreateDtBegin(java.util.Date value) {
		this.createDtBegin = value;
	}	
	
	public java.util.Date getCreateDtEnd() {
		return this.createDtEnd;
	}
	
	public void setCreateDtEnd(java.util.Date value) {
		this.createDtEnd = value;
	}
	
	public java.lang.String getModifier() {
		return this.modifier;
	}
	
	public void setModifier(java.lang.String value) {
		this.modifier = value;
	}
	
	public java.util.Date getModifiedDtBegin() {
		return this.modifiedDtBegin;
	}
	
	public void setModifiedDtBegin(java.util.Date value) {
		this.modifiedDtBegin = value;
	}	
	
	public java.util.Date getModifiedDtEnd() {
		return this.modifiedDtEnd;
	}
	
	public void setModifiedDtEnd(java.util.Date value) {
		this.modifiedDtEnd = value;
	}
	
	private String field_type;
	private String query;

	public String getField_type() {
		return field_type;
	}

	public void setField_type(String file_type) {
		this.field_type = file_type;
	}

	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}
    private String sort;
	private String dir;

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		
		this.sort = sort;
		if (!StringHelper.isEmpty(sort)&&!StringHelper.isEmpty(dir))
		  this.setSortColumns(sort+" "+dir);
	}

	public String getDir() {
		return dir;
	}

	public void setDir(String dir) {
		this.dir = dir;
	}
	public String toString() {
		return ToStringBuilder.reflectionToString(this,ToStringStyle.MULTI_LINE_STYLE);
	}
	
}

